#ifndef CACHE_H_
#define CACHE_H_

#include "Functions.h"
#include "./List.h"
#include <vector>
#include <map>

using std::vector;
using std::map;

class Cache {
private:
	List* buscados;

public:
	Cache();
	virtual ~Cache();
	void insert(TermYFrecQuery* dato);
	void insert(QueryToken);
	TermYFrecQuery* search(string token);
	void printCache();
	List* getBuscados(){return this->buscados;}
	void eliminateLeastFrequent();
};

#endif /* CACHE_H_ */
